package com.ulic.customerManApplication.membermodule.dao;

import java.util.List;
import java.util.Map;

import com.ulic.customerManApplication.membermodule.bo.SubMember;
import com.ulic.customerManApplication.membermodule.vo.SubMemberVO;
import com.ulic.customerManApplication.pager.PagerModel;
import com.ulic.customerManApplication.usermodule.bo.User;

public interface SubMemberDao {

	public PagerModel getSubMembers(int curPage);
	
	public List<SubMember> getSubMembers(User user);
	
	public PagerModel getSubMembers(SubMemberVO subMemberVO,int curPage);
	
	public SubMember getSubMember(int id);
	
	public List<SubMember> getSubMembers(String idCard);
	
	public List<SubMember> getSubMembersByJourId(Integer journeyLoveId);
	
	public void insertSubMember(SubMember subMember) throws Exception;
	
	public void insertSubMembers(List<SubMember> subMembers) throws Exception;
	
	public void deleteSubMember(SubMember subMember) throws Exception;
	
	public void updateSubMember(SubMember subMember) throws Exception;
	
	public List<SubMember> getSubMemberByPhone(String phone) throws Exception;
	
	public SubMember getSubMemberByPhone(String phone,String journeyLoveId) throws Exception;
	
	public Map<String, Long> getMemberCountByJourId(Integer journeyLoveId,String memberType);
	
	
}
